package com.aaa.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@TableName(value = "shopping_cart")
public class ShoppingCart {
    @TableId(value = "sid", type = IdType.UUID)
    private String sid;

    /**
     * 手机号 账号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 关联商品id
     */
    @TableField(value = "tid")
    private String tid;

    /**
     * 商品个数
     */
    @TableField(value = "count")
    private Integer count;

    @TableField(value = "create_date")
    private String createDate;

    @TableField(value = "update_date")
    private String updateDate;

    @TableField(value = "state")
    private Integer state;

    //一对多
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private TbPrdInfo tbPrdInfoList;

    public static final String COL_SID = "sid";

    public static final String COL_PHONE = "phone";

    public static final String COL_TID = "tid";

    public static final String COL_COUNT = "count";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_UPDATE_DATE = "update_date";

    public static final String COL_STATE = "state";
}